#CSE 504: Compiler Design
#Programming Assignment #1
#Scanner (Lexical Analysis) Module
#
#By 
#	Amitha Cheluvagopal
#	ID# 107569253
#	Email: amitha_c@yahoo.com
#
#	Naresh P Singh
#	ID# 107669049
#	Email: mail2naresh@gmail.com

DecafParser.class : DecafParser.java Decaf.html
	javac SymbolTable.java MethodInfo.java ClassInfo.java VariableInfo.java DecafParser.java 
DecafParser.java : Decaf.jjTree
	javacc decaf.jj.jj
Decaf.html: decaf.jj.jj
	jjdoc decaf.jj.jj
Decaf.jjTree: decaf.jj
	jjtree decaf.jj
clean: 
	rm -f *.class
	rm -f DecafParserTreeConstants.java
	rm -f JJTDecafParserState.java
	rm -f TokenMgrError.java
	rm -f ParseException.java
	rm -f Token.java
	rm -f SimpleCharStream.java
	rm -f DecafParserConstants.java
	rm -f DecafParser.java
	rm -f DecafParserTokenManager.java
	rm -f decaf.jj.html
	rm -f decaf.jj.jj
symboltable/clean:
	$(MAKE) -C symboltable clean
